<?php
/**
 * User: Jerry
 * Date: 2017/9/23
 * Time: 10:05
 */

namespace SDXApi\Controller;


use SDXApi\Service\CollectService;

/**
 * Class CollectController
 * @author Jerry
 * @package SDXApi\Controller
 */
class CollectController extends AppController
{
    /**
     * @author Jerry
     * @param string $apptoken
     * @param string $apptime
     */
    public function _initialize($apptoken, $apptime)
    {
        parent::_initialize($apptoken, $apptime,true); // TODO: Change the autogenerated stub
    }

    public function getCollectList()
    {
        $page_num = I("post.page", 0, 'int');
        $wid = I('post.wid', 8, 'int');
        $uid = I('post.uid', 0, 'int');

        $collectService = new CollectService();
        $data = $collectService->getCollectList($uid, $wid, $page_num);

        returnApiSuccess($data);
    }
}